/**
 * SIX VULN - http://code.google.com/p/six-vuln/
 * Copyright (C) 2006
 *   National Institute of Advanced Industrial Science and Technology (AIST)
 *   Registration Number: H20PRO-863
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jp.go.aist.six.vuln.repository.scap.nvd;

import jp.go.aist.six.util.repository.CommonQueryParams;




/**
 * Query parameters for NVD entries.
 *
 * @author  Akihito Nakamura, AIST
 * @version $Id: VulnerabilityQueryParams.java 530 2013-04-15 07:24:29Z nakamura5akihito@gmail.com $
 */
public class VulnerabilityQueryParams
    extends CommonQueryParams
{

    public static class Key
    extends CommonQueryParams.Key
    {
        public static final String  ID                  = "id";
        public static final String  CVE                 = "cve";
        public static final String  CVSS                = "cvss";
        public static final String  ACCESS_VECTOR       = "av";
        public static final String  ACCESS_COMPLEXITY   = "ac";
        public static final String  AUTHENTICATION      = "auth";
        public static final String  CONFIDENCE          = "c";
        public static final String  INTEGIRITY          = "i";
        public static final String  AVAILABILITY        = "a";
        public static final String  REF_SOURCE          = "refSource";
        public static final String  REF_NAME            = "refName";
        public static final String  REF_TYPE            = "refType";
        public static final String  SOFTWARE            = "software";
        public static final String  CWE                 = "cwe";
        public static final String  SUMMARY             = "summary";

        public static final String  OVAL                = "oval";
    }
    // Key



//    /**
//     * The default sorting order.
//     */
//    public static final String  DEFAULT_ORDER = Key.ID;



    /**
     * Constructs an instance.
     */
    public VulnerabilityQueryParams()
    {
//        setOrder( DEFAULT_ORDER );
    }



    /**
     */
    public void setId(
                    final String id
    )
    {
        set( Key.ID, id );
    }


    public String getId()
    {
        return get( Key.ID );
    }



    /**
     */
    public void setCve(
                    final String cve
    )
    {
        set( Key.CVE, cve );
    }


    public String getCve()
    {
        return get( Key.CVE );
    }


    /**
     */
    public void setCvss(
                    final String cvss
    )
    {
        set( Key.CVSS, cvss );
    }


    public String getCvss()
    {
        return get( Key.CVSS );
    }



    /**
     */
    public void setAv(
                    final String access_vector
    )
    {
        set( Key.ACCESS_VECTOR, access_vector );
    }


    public String getAv()
    {
        return get( Key.ACCESS_VECTOR );
    }



    /**
     */
    public void setAc(
                    final String access_complexity
    )
    {
        set( Key.ACCESS_COMPLEXITY, access_complexity );
    }


    public String getAc()
    {
        return get( Key.ACCESS_COMPLEXITY );
    }



    /**
     */
    public void setAuth(
                    final String authentication
    )
    {
        set( Key.AUTHENTICATION, authentication );
    }


    public String getAuth()
    {
        return get( Key.AUTHENTICATION );
    }



    /**
     */
    public void setC(
                    final String confidence
    )
    {
        set( Key.CONFIDENCE, confidence );
    }


    public String getC()
    {
        return get( Key.CONFIDENCE );
    }



    /**
     */
    public void setI(
                    final String integrity
    )
    {
        set( Key.INTEGIRITY, integrity );
    }


    public String getI()
    {
        return get( Key.INTEGIRITY );
    }



    /**
     */
    public void setA(
                    final String availability
    )
    {
        set( Key.AVAILABILITY, availability );
    }


    public String getA()
    {
        return get( Key.AVAILABILITY );
    }



    /**
     */
    public void setRefSource(
                    final String ref_source
    )
    {
        set( Key.REF_SOURCE, ref_source );
    }


    public String getRefSource()
    {
        return get( Key.REF_SOURCE );
    }



    /**
     */
    public void setRefName(
                    final String ref_name
    )
    {
        set( Key.REF_NAME, ref_name );
    }


    public String getRefName()
    {
        return get( Key.REF_NAME );
    }



    /**
     */
    public void setRefType(
                    final String ref_type
    )
    {
        set( Key.REF_TYPE, ref_type );
    }


    public String getRefType()
    {
        return get( Key.REF_TYPE );
    }



    /**
     */
    public void setSoftware(
                    final String software
    )
    {
        set( Key.SOFTWARE, software );
    }


    public String getSoftware()
    {
        return get( Key.SOFTWARE );
    }



    /**
     */
    public void setCwe(
                    final String cwe
    )
    {
        set( Key.CWE, cwe );
    }


    public String getCwe()
    {
        return get( Key.CWE );
    }



    /**
     */
    public void setSummary(
                    final String summary
    )
    {
        set( Key.SUMMARY, summary );
    }


    public String getSummary()
    {
        return get( Key.SUMMARY );
    }



    /**
     */
    public void setOval(
                    final String oval
    )
    {
        set( Key.OVAL, oval );
    }


    public String getOval()
    {
        return get( Key.OVAL );
    }

}
//

